<?php
$username = $_POST["username"];
$alias = $_POST["alias"];
$password = $_POST["password"];
$contact = $_POST["contact"];
$email = $_POST["email"];
$online_contact = $_POST["online_contact"];
$draw_password = $_POST["draw_password"];

$con = mysql_connect("localhost", "root", "");
if (!$con) {
    die('Could not connect: ' . mysql_error());
}

// Create table in my_db database
mysql_select_db("my_db", $con);


$date = date("Y-m-d h:i:sa");

$sql = "INSERT INTO `my_db`.`Person` ( `UserName`, `Password`, `RealName`, `Phone`, `DrawPwd`, `Amount`, `Time`, `Ly`, `Checked`) VALUES ( '$username', '$password', '$alias', '$contact', '$draw_password', '$online_contact', '$date', '$email', '0');";
if (mysql_query($sql, $con)) {
    echo "success";
} else {
    echo "Get some problem";
}

mysql_close($con);

?>